<!DOCTYPE html>
{% load static %}
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
    <script src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
    <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    {% block head %}

    {% endblock %}
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <nav class="navbar navbar-default navbar-inverse" role="navigation">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse"
                            data-target="#bs-example-navbar-collapse-1"><span
                            class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span
                            class="icon-bar"></span><span class="icon-bar"></span></button>
                    <a class="navbar-brand" href="#">
                        基于Scrapy的网上兼职网数据爬虫分析
                    </a>
                </div>

                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li {% if 'workType' in IsSuccess %} class="active" {% endif %}>
                            <a href="/">工作类别</a>
                        </li>
                        <li {% if 'salary' in IsSuccess %} class="active" {% endif %}>
                            <a href="/salary">时薪</a>
                        </li>

                        <li {% if  'districtLine'  in IsSuccess %} class="active" {% endif %}>
                            <a href="/districtLine">历年兼职曲线</a>
                        </li>

                        <li {% if  'district'  in IsSuccess %} class="active" {% endif %}>
                            <a href="/district">城市区域分布</a>
                        </li>

                        <li {% if 'education' in IsSuccess %} class="active" {% endif %}>
                            <a href="/education">职位学历要求</a>
                        </li>
                        <li {% if 'wordCloud' in IsSuccess %} class="active" {% endif %}>
                            <a href="/wordCloud">词云图</a>
                        </li>
                    </ul>

                    <ul class="nav navbar-nav navbar-right">
                           {% if current_user.user.is_staff %}
                        <li>

                            <a href="/admin">数据管理</a>

                        </li>
                          {% endif %}
                        <li class="dropdown">
                            {% if current_user.is_login %}
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ current_user.user }}<strong
                                    class="caret"></strong></a>
                            <ul class="dropdown-menu">

                                <li>
                                    <a href="{% url 'app01:my-page' %}">个人信息</a>
                                </li>

                                <li class="divider">
                                </li>
                                <li>
                                    <a href="{% url 'accounts:logout' %}">退出</a>
                                </li>

                            </ul>

                             {% else %}
                            <a href="{% url 'accounts:login' %}" class="dropdown-toggle" data-toggle="dropdown">点击登录</a>
                             {% endif %}
                        </li>
                    </ul>

                </div>

            </nav>
            {% block content %}

            {% endblock %}

            {% block script %}

            {% endblock %}
        </div>
    </div>
</div>
</body>
</html>